<template>
  <div class="loading">
    <img src="../assets/img/lazyloading.jpg" alt />
    <p>{{loadingText}}</p>
  </div>
</template>
    
<script>
import {mapGetters} from "vuex"
export default {
  name: "Loading",
  data(){
      return{

      }
  },
  computed:{
      ...mapGetters(["loadingText"])
  }
};
</script>
<style lang="scss" scoped>
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 50%;
  top: 50%;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  z-index: 9999;
  font-size: .4rem;
  color: white;
  > img {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  >p{
      position: absolute;
      bottom: 0;
  }
}
</style>